//
//  ParentInfo.h
//  iBaby365v2
//
//  Created by Kirinrin on 14-7-6.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EaseMob.h"

@interface ParentInfo : NSObject
@property(strong, nonatomic)NSString *id;
@property(strong, nonatomic)NSString *name;
@property(strong, nonatomic)NSString *phoneNumber;
@property(strong, nonatomic)NSURL *photo;


@property(strong, nonatomic)EMConversation * messages;

//for display
@property(assign, nonatomic)NSInteger sectionNumber;

-(instancetype)initWithDictionary:(NSDictionary *)data;
-(instancetype)initWithMessage:(EMConversation *)message;

+(NSArray *)parentsWithDictionaryArray:(NSArray *)arrayList;
+(NSDictionary *)sortAndIndexWithPinyinLetter:(NSArray *)parentList;

+(NSArray *)updateParentListWithArray:(NSArray *)data parents:(NSArray *)parents;

- (NSString *) getFirstName ;
@end
